package com.classichu.archdemo.data.remote;

import com.classichu.archdemo.data.remote.bean.NewsBean;
import com.classichu.archdemo.data.IDateSouce;
import com.classichu.archdemo.data.remote.api.ApiManager;

import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;

public class RemoteDateSouce implements IDateSouce {
    @Override
    public void refreshList() {
        ApiManager.getInstance().getNewsApi().getNewsList().enqueue(new Callback<NewsBean>() {
            @Override
            public void onResponse(Call<NewsBean> call, Response<NewsBean> response) {

            }

            @Override
            public void onFailure(Call<NewsBean> call, Throwable t) {

            }
        });
    }

    @Override
    public void loadMoreList(int pageNum) {

    }

    @Override
    public boolean isLoading() {
        return false;
    }
}
